<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MC823 - Laboratório de Redes: Trabalho 01: Referência do Arquivo str.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MC823 - Laboratório de Redes: Trabalho 01</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li><a href="annotated.html"><span>Estruturas&#160;de&#160;Dados</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Busca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Globais</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Estruturas de Dados</a> &#124;
<a href="#typedef-members">Definições de Tipos</a> &#124;
<a href="#func-members">Funções</a>  </div>
  <div class="headertitle">
<div class="title">Referência do Arquivo str.h</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Gráfico de dependência de inclusões para str.h:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h__incl.png" border="0" usemap="#str_8h" alt=""/></div>
<map name="str_8h" id="str_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
Este grafo mostra quais arquivos estão direta ou indiretamente relacionados com este arquivo:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h__dep__incl.png" border="0" usemap="#str_8hdep" alt=""/></div>
<map name="str_8hdep" id="str_8hdep">
<area shape="rect" id="node3" href="beejClient_8c.html" title="beejClient.c" alt="" coords="5,83,101,112"/><area shape="rect" id="node5" href="resposta_8h.html" title="resposta.h" alt="" coords="125,83,216,112"/><area shape="rect" id="node11" href="str_8c.html" title="str.c" alt="" coords="240,83,288,112"/><area shape="rect" id="node7" href="beejServer_8c.html" title="beejServer.c" alt="" coords="60,160,161,189"/><area shape="rect" id="node9" href="resposta_8c.html" title="resposta.c" alt="" coords="185,160,273,189"/></map>
</div>
</div>
<p><a href="str_8h_source.html">Vá para o código-fonte deste arquivo.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Estruturas de Dados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structstr.html">str</a></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Definições de Tipos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structstr.html">str</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a7d94dc8a8cdc32f0385ef28d8c511c52">string</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funções</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a1dfa00642ae5f5be626f6d5e018fd6ad">str_max_size</a> (<a class="el" href="structstr.html">string</a> <a class="el" href="structstr.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a8b4c5d297194c9f1f57ca0e79ca31ba4">str_cur_size</a> (<a class="el" href="structstr.html">string</a> <a class="el" href="structstr.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#afa61b1760ef7da2de72524003044f203">str_free_size</a> (<a class="el" href="structstr.html">string</a> <a class="el" href="structstr.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structstr.html">string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a43e9efab3e78f169462b9f842c827fba">str_initialize</a> (size_t size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a5ca723b0fa09efed3e009b907daa44ca">str_free</a> (<a class="el" href="structstr.html">string</a> <a class="el" href="structstr.html">string</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a0551d9da0243fc76764a50740d442547">str_concat_chararr</a> (<a class="el" href="structstr.html">string</a> to, char *from, size_t size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#afb165027543e6d9d230117702acdadd0">str_concat_str</a> (<a class="el" href="structstr.html">string</a> to, <a class="el" href="structstr.html">string</a> from)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a0eb24b63eea1db24c63a7d9d1f13aa4d">str_cmp_str_chararr</a> (<a class="el" href="structstr.html">string</a> <a class="el" href="structstr.html">str</a>, char *elt, size_t size)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="str_8h.html#a0a559f5efb08d64139c019b1d559fa68">str_cmp_str_str</a> (<a class="el" href="structstr.html">string</a> str1, <a class="el" href="structstr.html">string</a> str2)</td></tr>
</table>
<hr/><h2>Definições dos tipos</h2>
<a class="anchor" id="a7d94dc8a8cdc32f0385ef28d8c511c52"></a><!-- doxytag: member="str.h::string" ref="a7d94dc8a8cdc32f0385ef28d8c511c52" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structstr.html">str</a>* <a class="el" href="structstr.html">string</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definição na linha <a class="el" href="str_8h_source.html#l00024">24</a> do arquivo <a class="el" href="str_8h_source.html">str.h</a>.</p>

</div>
</div>
<hr/><h2>Funções</h2>
<a class="anchor" id="a0eb24b63eea1db24c63a7d9d1f13aa4d"></a><!-- doxytag: member="str.h::str_cmp_str_chararr" ref="a0eb24b63eea1db24c63a7d9d1f13aa4d" args="(string str, char *elt, size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int str_cmp_str_chararr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>elt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que compara uma estrutura do tipo string com uma string "padrao".</p>
<p>str - estrutura do tipo string  elt - string  size - tamanho da string</p>
<p>inteiro indicando sucesso ou fracasso </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00152">152</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a0eb24b63eea1db24c63a7d9d1f13aa4d_icgraph.png" border="0" usemap="#str_8h_a0eb24b63eea1db24c63a7d9d1f13aa4d_icgraph" alt=""/></div>
<map name="str_8h_a0eb24b63eea1db24c63a7d9d1f13aa4d_icgraph" id="str_8h_a0eb24b63eea1db24c63a7d9d1f13aa4d_icgraph">
<area shape="rect" id="node3" href="str_8h.html#a0a559f5efb08d64139c019b1d559fa68" title="str_cmp_str_str" alt="" coords="205,5,328,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0a559f5efb08d64139c019b1d559fa68"></a><!-- doxytag: member="str.h::str_cmp_str_str" ref="a0a559f5efb08d64139c019b1d559fa68" args="(string str1, string str2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int str_cmp_str_str </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que compara duas estruturas do tipo string.</p>
<p>str1 - estrutura do tipo string  str2 - estrutura do tipo string</p>
<p>inteiro indicando sucesso ou fracasso </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00169">169</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a0a559f5efb08d64139c019b1d559fa68_cgraph.png" border="0" usemap="#str_8h_a0a559f5efb08d64139c019b1d559fa68_cgraph" alt=""/></div>
<map name="str_8h_a0a559f5efb08d64139c019b1d559fa68_cgraph" id="str_8h_a0a559f5efb08d64139c019b1d559fa68_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a0eb24b63eea1db24c63a7d9d1f13aa4d" title="str_cmp_str_chararr" alt="" coords="177,5,327,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0551d9da0243fc76764a50740d442547"></a><!-- doxytag: member="str.h::str_concat_chararr" ref="a0551d9da0243fc76764a50740d442547" args="(string to, char *from, size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int str_concat_chararr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que concatena uma string 'padrão' com uma estrutura do tipo string</p>
<p>to - estrutura do tipo string  from - string  num - tamanho da string a ser concatenada</p>
<p>inteiro indicando sucesso ou fracasso. </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00106">106</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a0551d9da0243fc76764a50740d442547_cgraph.png" border="0" usemap="#str_8h_a0551d9da0243fc76764a50740d442547_cgraph" alt=""/></div>
<map name="str_8h_a0551d9da0243fc76764a50740d442547_cgraph" id="str_8h_a0551d9da0243fc76764a50740d442547_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="199,7,300,36"/><area shape="rect" id="node7" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="349,59,456,88"/><area shape="rect" id="node10" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="215,111,284,140"/><area shape="rect" id="node5" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="353,5,452,35"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a0551d9da0243fc76764a50740d442547_icgraph.png" border="0" usemap="#str_8h_a0551d9da0243fc76764a50740d442547_icgraph" alt=""/></div>
<map name="str_8h_a0551d9da0243fc76764a50740d442547_icgraph" id="str_8h_a0551d9da0243fc76764a50740d442547_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="203,57,307,87"/><area shape="rect" id="node12" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="377,109,489,139"/><area shape="rect" id="node15" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="376,163,491,192"/><area shape="rect" id="node18" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="228,212,281,241"/><area shape="rect" id="node20" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="361,240,505,269"/><area shape="rect" id="node23" href="str_8h.html#afb165027543e6d9d230117702acdadd0" title="str_concat_str" alt="" coords="199,316,311,345"/><area shape="rect" id="node5" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="380,5,487,35"/><area shape="rect" id="node7" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="555,109,685,139"/><area shape="rect" id="node9" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="735,109,788,139"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afb165027543e6d9d230117702acdadd0"></a><!-- doxytag: member="str.h::str_concat_str" ref="afb165027543e6d9d230117702acdadd0" args="(string to, string from)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int str_concat_str </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que concatena duas estruturas do tipo string.</p>
<p>to - estrutura do tipo string a receber a concatenação  from - estrutura do tipo string a ser concatenada</p>
<p>inteiro indicando sucesso ou fracasso </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00135">135</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_afb165027543e6d9d230117702acdadd0_cgraph.png" border="0" usemap="#str_8h_afb165027543e6d9d230117702acdadd0_cgraph" alt=""/></div>
<map name="str_8h_afb165027543e6d9d230117702acdadd0_cgraph" id="str_8h_afb165027543e6d9d230117702acdadd0_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a9c98046afe58b4d941f546c5a604a7de" title="str_concat_chararr" alt="" coords="169,59,311,88"/><area shape="rect" id="node5" href="str_8c.html#a47d6c89b7dacac751de1965e2ee90189" title="str_free_size" alt="" coords="361,7,463,36"/><area shape="rect" id="node9" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="512,59,619,88"/><area shape="rect" id="node12" href="mm_8c.html#a93a8ec6e8a6eef0f62b7e5b50d0bf9e4" title="xrealloc" alt="" coords="377,111,447,140"/><area shape="rect" id="node7" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="516,5,615,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8b4c5d297194c9f1f57ca0e79ca31ba4"></a><!-- doxytag: member="str.h::str_cur_size" ref="a8b4c5d297194c9f1f57ca0e79ca31ba4" args="(string string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t str_cur_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que indica o tamanho atual da estrutura do tipod string.</p>
<p>str - estrutura do tipo string</p>
<p>inteiro representando o tamanho atual da string. </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00074">74</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a8b4c5d297194c9f1f57ca0e79ca31ba4_icgraph.png" border="0" usemap="#str_8h_a8b4c5d297194c9f1f57ca0e79ca31ba4_icgraph" alt=""/></div>
<map name="str_8h_a8b4c5d297194c9f1f57ca0e79ca31ba4_icgraph" id="str_8h_a8b4c5d297194c9f1f57ca0e79ca31ba4_icgraph">
<area shape="rect" id="node3" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="527,5,580,35"/><area shape="rect" id="node5" href="str_8h.html#afa61b1760ef7da2de72524003044f203" title="str_free_size" alt="" coords="153,84,255,113"/><area shape="rect" id="node7" href="str_8h.html#a0551d9da0243fc76764a50740d442547" title="str_concat_chararr" alt="" coords="305,111,447,140"/><area shape="rect" id="node9" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="501,59,605,88"/><area shape="rect" id="node18" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="676,111,788,140"/><area shape="rect" id="node21" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="675,164,789,193"/><area shape="rect" id="node25" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="660,217,804,247"/><area shape="rect" id="node28" href="str_8h.html#afb165027543e6d9d230117702acdadd0" title="str_concat_str" alt="" coords="497,264,609,293"/><area shape="rect" id="node11" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="679,7,785,36"/><area shape="rect" id="node13" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="853,111,984,140"/><area shape="rect" id="node15" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="1033,111,1087,140"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5ca723b0fa09efed3e009b907daa44ca"></a><!-- doxytag: member="str.h::str_free" ref="a5ca723b0fa09efed3e009b907daa44ca" args="(string string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int str_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que libera a memória alocada por uma string</p>
<p>str - estrutura do tipo string</p>
<p>um inteiro descrevendo o sucesso ou falha </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00038">38</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a5ca723b0fa09efed3e009b907daa44ca_icgraph.png" border="0" usemap="#str_8h_a5ca723b0fa09efed3e009b907daa44ca_icgraph" alt=""/></div>
<map name="str_8h_a5ca723b0fa09efed3e009b907daa44ca_icgraph" id="str_8h_a5ca723b0fa09efed3e009b907daa44ca_icgraph">
<area shape="rect" id="node3" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="127,5,180,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afa61b1760ef7da2de72524003044f203"></a><!-- doxytag: member="str.h::str_free_size" ref="afa61b1760ef7da2de72524003044f203" args="(string string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t str_free_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que mostra quanto há de espaço livre na estrutura de dados do tipo string.</p>
<p>str - estrutura do tipo string</p>
<p>inteiro representando quanto há de espaço livre </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00089">89</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_afa61b1760ef7da2de72524003044f203_cgraph.png" border="0" usemap="#str_8h_afa61b1760ef7da2de72524003044f203_cgraph" alt=""/></div>
<map name="str_8h_afa61b1760ef7da2de72524003044f203_cgraph" id="str_8h_afa61b1760ef7da2de72524003044f203_cgraph">
<area shape="rect" id="node3" href="str_8c.html#a0df87a68167272d6191fd0fcef787752" title="str_cur_size" alt="" coords="161,5,260,35"/><area shape="rect" id="node5" href="str_8c.html#ae20e94ac638a09b2cd12680cbdae2910" title="str_max_size" alt="" coords="157,59,264,88"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_afa61b1760ef7da2de72524003044f203_icgraph.png" border="0" usemap="#str_8h_afa61b1760ef7da2de72524003044f203_icgraph" alt=""/></div>
<map name="str_8h_afa61b1760ef7da2de72524003044f203_icgraph" id="str_8h_afa61b1760ef7da2de72524003044f203_icgraph">
<area shape="rect" id="node3" href="str_8h.html#a0551d9da0243fc76764a50740d442547" title="str_concat_chararr" alt="" coords="159,187,300,216"/><area shape="rect" id="node5" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="355,57,459,87"/><area shape="rect" id="node14" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="529,109,641,139"/><area shape="rect" id="node17" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="528,163,643,192"/><area shape="rect" id="node20" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="380,212,433,241"/><area shape="rect" id="node22" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="513,240,657,269"/><area shape="rect" id="node25" href="str_8h.html#afb165027543e6d9d230117702acdadd0" title="str_concat_str" alt="" coords="351,316,463,345"/><area shape="rect" id="node7" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="532,5,639,35"/><area shape="rect" id="node9" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="707,109,837,139"/><area shape="rect" id="node11" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="887,109,940,139"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a43e9efab3e78f169462b9f842c827fba"></a><!-- doxytag: member="str.h::str_initialize" ref="a43e9efab3e78f169462b9f842c827fba" args="(size_t size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structstr.html">string</a> str_initialize </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que inicializa uma estrututura do tipo string.</p>
<p>size - tamanho da string a ser inicializada</p>
<p>string inicializada </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00014">14</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções utilizadas por esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a43e9efab3e78f169462b9f842c827fba_cgraph.png" border="0" usemap="#str_8h_a43e9efab3e78f169462b9f842c827fba_cgraph" alt=""/></div>
<map name="str_8h_a43e9efab3e78f169462b9f842c827fba_cgraph" id="str_8h_a43e9efab3e78f169462b9f842c827fba_cgraph">
<area shape="rect" id="node3" href="mm_8c.html#a42ccfa6fc49cc4ce90cc44cd05052490" title="xmalloc" alt="" coords="153,5,223,35"/></map>
</div>
</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a43e9efab3e78f169462b9f842c827fba_icgraph.png" border="0" usemap="#str_8h_a43e9efab3e78f169462b9f842c827fba_icgraph" alt=""/></div>
<map name="str_8h_a43e9efab3e78f169462b9f842c827fba_icgraph" id="str_8h_a43e9efab3e78f169462b9f842c827fba_icgraph">
<area shape="rect" id="node3" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="173,57,277,87"/><area shape="rect" id="node12" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="348,109,460,139"/><area shape="rect" id="node15" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="347,163,461,192"/><area shape="rect" id="node18" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="199,212,252,241"/><area shape="rect" id="node20" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="153,265,297,295"/><area shape="rect" id="node5" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="351,5,457,35"/><area shape="rect" id="node7" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="509,109,640,139"/><area shape="rect" id="node9" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="689,109,743,139"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a1dfa00642ae5f5be626f6d5e018fd6ad"></a><!-- doxytag: member="str.h::str_max_size" ref="a1dfa00642ae5f5be626f6d5e018fd6ad" args="(string string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t str_max_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structstr.html">string</a>&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Função auxiliar que indica o tamanho máximo da estrutura do tipo string.</p>
<p>str - estrutura do tipo string</p>
<p>inteiro descrevendo o tamanho máximo da string. </p>

<p>Definição na linha <a class="el" href="str_8c_source.html#l00059">59</a> do arquivo <a class="el" href="str_8c_source.html">str.c</a>.</p>

<p><div class="dynheader">
Este é o diagrama das funções que utilizam esta função:</div>
<div class="dyncontent">
<div class="center"><img src="str_8h_a1dfa00642ae5f5be626f6d5e018fd6ad_icgraph.png" border="0" usemap="#str_8h_a1dfa00642ae5f5be626f6d5e018fd6ad_icgraph" alt=""/></div>
<map name="str_8h_a1dfa00642ae5f5be626f6d5e018fd6ad_icgraph" id="str_8h_a1dfa00642ae5f5be626f6d5e018fd6ad_icgraph">
<area shape="rect" id="node3" href="str_8h.html#a0551d9da0243fc76764a50740d442547" title="str_concat_chararr" alt="" coords="313,187,455,216"/><area shape="rect" id="node27" href="str_8h.html#afa61b1760ef7da2de72524003044f203" title="str_free_size" alt="" coords="161,212,263,241"/><area shape="rect" id="node5" href="resposta_8h.html#a6c04d45a3b24b43c86d50889bde25d67" title="infoDisciplina" alt="" coords="509,57,613,87"/><area shape="rect" id="node14" href="resposta_8h.html#aae0e9c217f1ede36bbf9821b36bba3f9" title="infoDisciplinas" alt="" coords="684,109,796,139"/><area shape="rect" id="node17" href="resposta_8h.html#adca402fde30bac4845d32a7dd4e6160a" title="listaDisciplinas" alt="" coords="683,163,797,192"/><area shape="rect" id="node20" href="beejClient_8c.html#a0ddf1224851353fc92bfbff6f499fa97" title="main" alt="" coords="535,212,588,241"/><area shape="rect" id="node22" href="resposta_8h.html#ae53e5d927eddd073efa7dd3777c222c2" title="programaDisciplina" alt="" coords="668,240,812,269"/><area shape="rect" id="node25" href="str_8h.html#afb165027543e6d9d230117702acdadd0" title="str_concat_str" alt="" coords="505,316,617,345"/><area shape="rect" id="node7" href="resposta_8h.html#a2a098bc71f2a19dd74318fd778676979" title="leComentario" alt="" coords="687,5,793,35"/><area shape="rect" id="node9" href="resposta_8h.html#a9bb7e31e6340d62b3afb839655847563" title="preparaResposta" alt="" coords="861,109,992,139"/><area shape="rect" id="node11" href="beejServer_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="1041,109,1095,139"/></map>
</div>
</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estruturas de Dados</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definições de Tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definições e Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Gerado em Quarta, 25 de Abril de 2012 23:42:04 para MC823 - Laboratório de Redes: Trabalho 01 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
